<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="renderer" content="webkit">
    <meta name="keywords" content="渠道入驻,苏e融,南京荣勋,荣勋,金融信息服务，互联网金融">
    <meta name="description" content="苏e融一站式信息咨询服务平台，不收取任何手续费，专业信息咨询顾问还将为您提供海量产品，同时客服全程一对一跟踪，为您提供优选产品和优质服务。">
    <title>专业的信息咨询服务平台-苏e融</title>
    <link href="/assets/css/bootstrap.min.css" rel="stylesheet">
    <link href="/assets/css/global.css" rel="stylesheet">
    <link href="/assets/css/common.css" rel="stylesheet">
    <link rel="stylesheet" href="/assets/css/news/news.css">
    <link rel="shortcut icon" href="http://img0.rongsue.com/images/favicon.ico?imageView2/2/w/80/h/80/interlace/1/q/100">
</head>

<body>
    <!-- nav -->
    <div class="global-nav"></div>
    <!-- /.nav -->

    <!-- banner -->
    <div class="clearfix container-fluid plr0 product-banner">
        <img src="http://img0.rongsue.com/images/index/news.jpg?imageMogr2/auto-orient/blur/1x0/quality/50">
    </div>
    <!--/.banner-->

    <!-- 一排三个 -->
    <div class="news-wrap">
        <!-- <a class="news-list">
                <img src="/assets/images/index/news-right.jpg" alt="">
                <div class="news-cont">
                    <p class="news-tit">无锡银行中报点评：收缩同业结构优化，加强投资不良双降</p>
                    <p class="news-detail">无锡银行公布2017年半年报，2017年上半年实现营业收入13.9亿元（YoY 12.9%），净利润5.2亿元.无锡银行公布2017年半年报，2017年上半年实现营业收入13.9亿元</p>
                </div>
                <p class="news-tip">
                    <span>融资攻略</span>
                    <span>2017-09-18 15:24</span>
                </p>
            </a>  -->

    </div>
    <div class="paging" id="page1"></div>
    <div style="height:100px;"></div>

    <!-- footer -->
    <div class="global-footer"></div>
    <!-- /.footer -->

    <script src="/assets/lib/jquery.min.js"></script>
    <script src="/assets/lib/bootstrap.min.js"></script>
    <script src="/assets/lib/select2.min.js"></script>
    <script src="/assets/lib/util.js"></script>
    <script src="/assets/lib/page.js"></script>
    <script src="/assets/js/global.js"></script>
    <!-- nav -->
    <script src="/assets/lib/js.cookie.js"></script>
    <script src="/assets/js/nav.js"></script>
    <script src="/assets/lib/headfooter.js"></script>
    <!-- nav end -->

    <script>

        ; (function (window, $) {

            var page1 = paging();
            $(function () {
                page1.init(1, 0, $('#page1'), function () {
                    getList($(this).data('page'));
                }, 3);
                getList(1);
            });

            function getList(page) {
                util.ajax({
                    url: '/news/list?limit=3&page=' + page ,
                    type: 'get',
                    success: function (res) {
                        page1.init(page, res.data.total);
                        var newsObj = res.data.rows;
                        $('.news-wrap').empty();
                        for (var i in newsObj) {

                            var a = $('<a class="news-list"></a>').attr('href', 'newsdetail.html?id=' + newsObj[i].id).appendTo($('.news-wrap'));
                            var img = $('<img>').attr('src', newsObj[i].image + '?imageMogr2/auto-orient/blur/1x0/quality/50').appendTo(a);
                            var div = $('<div class="news-cont"></div>').appendTo(a);
                            var p1 = $('<p class="news-tit"></p>').html(newsObj[i].title).appendTo(div);
                            var p2 = $('<p class="news-detail"></p>').html(newsObj[i].content).appendTo(div);
                            var pOut = $('<p class="news-tip"></p>').appendTo(a);

                            //
                            if (newsObj[i].hot == 0 || newsObj[i].recommend == 0) {
                                var span1 = $('<span class="hot"></span>').appendTo(pOut).html('热门' + '<i>&nbsp;&nbsp;推荐</i>');
                            } else if (newsObj[i].hot == 1 && newsObj[i].recommend == 1) {
                                var span1 = $('<span class="hot"></span>').appendTo(pOut).html();
                            } else if (newsObj[i].hot == 0 && newsObj[i].recommend == 1) {
                                var span1 = $('<span class="hot"></span>').appendTo(pOut).html('热门');
                            } else if (newsObj[i].hot == 1 && newsObj[i].recommend == 0) {
                                var span1 = $('<span class="hot"></span>').appendTo(pOut).html('<i>推荐</i>');
                            } else if (newsObj[i].hot == undefined && newsObj[i].recommend == undefined) {
                                var span1 = $('<span class="hot"></span>').appendTo(pOut).html();
                            }

                            var span2 = $('<span></span>').appendTo(pOut).html(newsObj[i].createTime);

                        }
                    }
                })
            }
        })(window, jQuery)
    </script>
</body>

</html>